package cn.cnhis.online.mymodule;

import android.app.Application;
import android.util.Log;


import com.tencent.smtt.sdk.QbSdk;
import com.tencent.smtt.sdk.WebView;
import com.xuexiang.xui.XUI;

import java.util.Map;

import androidx.annotation.NonNull;
import cn.cnhis.online.BuildConfig;


/**
 * Created by wuzhc on 2018/7/17.
 */

public class BaseApplication extends Application {
    private static final String TAG = BaseApplication.class.getSimpleName();

    private static BaseApplication Instance;

    //static 代码段可以防止内存泄露


    /**
     * 获取实例
     */
    public static BaseApplication getINSTANCE() {
        return Instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        Instance = this;
        XUI.init(this); //初始化UI框架
        XUI.debug(true);  //开启UI框架调试日志
        QbSdk.initX5Environment(this,null);
    }

}